/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.config.entity.weixin;

import org.hibernate.validator.constraints.Length;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 配置微信基本信息Entity
 * @author Egan
 * @version 2017-02-20
 */
public class ConfigWechat extends DataEntity<ConfigWechat> {
	
	private static final long serialVersionUID = 1L;
	private String appId;		// app_id
	private String appSecret;		// app_secret
	private String appIdGz;		// app_id_gz
	private String appSecretGz;		// app_secret_gz
	private String appKey;		// app_key
	private String mchId;		// mch_id
	private String notifyUrl;		// notify_url
	private String payUrl;		// pay_url
	private String queryUrl;		// query_url
	private String refundUrl;		// refund_url
	private String tradeType; //trade_type
	private String tradeTypeGz; //trade_type
	
	public ConfigWechat() {
		super();
	}

	public ConfigWechat(String id){
		super(id);
	}

	@Length(min=0, max=128, message="app_id长度必须介于 0 和 128 之间")
	public String getAppId() {
		return appId;
	}

	public void setAppId(String appId) {
		this.appId = appId;
	}
	
	@Length(min=0, max=128, message="app_secret长度必须介于 0 和 128 之间")
	public String getAppSecret() {
		return appSecret;
	}

	public void setAppSecret(String appSecret) {
		this.appSecret = appSecret;
	}
	
	@Length(min=0, max=128, message="app_id_gz长度必须介于 0 和 128 之间")
	public String getAppIdGz() {
		return appIdGz;
	}

	public void setAppIdGz(String appIdGz) {
		this.appIdGz = appIdGz;
	}
	
	@Length(min=0, max=128, message="app_secret_gz长度必须介于 0 和 128 之间")
	public String getAppSecretGz() {
		return appSecretGz;
	}

	public void setAppSecretGz(String appSecretGz) {
		this.appSecretGz = appSecretGz;
	}
	
	@Length(min=0, max=128, message="app_key长度必须介于 0 和 128 之间")
	public String getAppKey() {
		return appKey;
	}

	public void setAppKey(String appKey) {
		this.appKey = appKey;
	}
	
	@Length(min=0, max=128, message="mch_id长度必须介于 0 和 128 之间")
	public String getMchId() {
		return mchId;
	}

	public void setMchId(String mchId) {
		this.mchId = mchId;
	}
	
	@Length(min=0, max=3000, message="notify_url长度必须介于 0 和 3000 之间")
	public String getNotifyUrl() {
		return notifyUrl;
	}

	public void setNotifyUrl(String notifyUrl) {
		this.notifyUrl = notifyUrl;
	}
	
	@Length(min=0, max=3000, message="pay_url长度必须介于 0 和 3000 之间")
	public String getPayUrl() {
		return payUrl;
	}

	public void setPayUrl(String payUrl) {
		this.payUrl = payUrl;
	}
	
	@Length(min=0, max=3000, message="query_url长度必须介于 0 和 3000 之间")
	public String getQueryUrl() {
		return queryUrl;
	}

	public void setQueryUrl(String queryUrl) {
		this.queryUrl = queryUrl;
	}
	
	@Length(min=0, max=3000, message="refund_url长度必须介于 0 和 3000 之间")
	public String getRefundUrl() {
		return refundUrl;
	}

	public void setRefundUrl(String refundUrl) {
		this.refundUrl = refundUrl;
	}

	public String getTradeType() {
		return tradeType;
	}

	public void setTradeType(String tradeType) {
		this.tradeType = tradeType;
	}

	public String getTradeTypeGz() {
		return tradeTypeGz;
	}

	public void setTradeTypeGz(String tradeTypeGz) {
		this.tradeTypeGz = tradeTypeGz;
	}
	
}